//
//  ArtTableViewController.h
//  ArtLive
//
//  Created by weijingyun on 16/6/30.
//  Copyright © 2016年 LeeWong. All rights reserved.
//

#import "SVPullToRefresh.h"
//#import "ArtViewController.h"
#import "ArtRACDefine.h"
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ArtTableViewController : UIViewController
@property (nonatomic, strong, readonly) UITableView *tableView;
@property (nonatomic, assign, readonly) EArtTableViewRefreshType refreshType;

// 重写该方法在 configRefresh 前配置UI配置
- (void)configViewDidLoadUI;

// 重写
- (UITableViewStyle)tableViewStyle;
// 默认都有
- (EArtTableViewRefreshType)refreshType;

//上拉下拉调用的方法
- (void)doRequestRefresh:(BOOL)aRefresh;
- (void)insertRowAtTop;
- (void)insertRowAtBottom;


#pragma mark - UI处理  kRACUIRefresh kRACUIShowMore kRACUINoData kRACUIError
// 为RAC准备
- (void (^)(NSDictionary* dic))nextBlockRefresh:(BOOL)aRefresh reloadBlock:(void (^)(NSDictionary* dic))aBlock;
- (void (^)(NSDictionary* dic))nextBlockRefresh:(BOOL)aRefresh;

// 为普通调用准备
- (void)sendNext:(NSDictionary *)aDic refresh:(BOOL)aRefresh;
- (void)sendNext:(NSDictionary *)aDic refresh:(BOOL)aRefresh reloadBlock:(void (^)(NSDictionary* dic))aBlock;

@end

NS_ASSUME_NONNULL_END

